window.onload = function () {
  // 对于手机操作, 触发了touchstart, 将作出记录
  document.addEventListener('touchstart', function (event) {
    if (event.touches.length > 1) {
      event.preventDefault();
    }
  });
  document.querySelector('body').addEventListener('touchmove', function (e) {
    e.stopPropagation();
    // e.preventDefault(); 默认事件可以自行考虑加不加
  }, false);

  // 阻止双指放大
  document.addEventListener('gesturestart', (event) => {
    event.preventDefault();
  });
};
// 防止放大缩小
document.addEventListener('mousewheel', function (e) {
  e = e || window.event; '';
  if ((e.wheelDelta && event.ctrlKey) || e.detail) {
    event.preventDefault();
  }
}, {
  capture: false,
  passive: false
});